package com.jmu.account;

import java.util.Date;

public class SavingAccount extends Account{
    private String type;


    public SavingAccount(String id, String name, double annualRate, Date date) {
        super(id, name, annualRate, date);
        this.type = "储蓄账户";
    }

    @Override
    public String toString() {
        return "账户信息: " +
                "账户类型='" + type + '\'' +
                ", 卡号='" + id + '\'' +
                ", 姓名='" + name + '\'' +
                ", 余额=" + balance +
                ", 年利率=" + annualRate +
                ", 开户日期=" + date;
    }
}
